//  收银台--挂号中心
import request from '@/router/axios'

//获取挂号列表
export function getRegisterCenterPage(query) {
  return request({
    url: '/eims/registerCenter/getRegisterCenterPage',
    method: 'get',
    params: query
  })
}

export function registerCenterForReturnPage(query) {
  return request({
    url: '/eims/registerCenter/registerCenterForReturnPage',
    method: 'get',
    params: query
  })
}

export function registerCenterForCheckPage(query) {
  return request({
    url: '/eims/registerCenter/registerCenterForCheckPage',
    method: 'get',
    params: query
  })
}

//  新增挂号
export function saveRegisterCenter(obj) {
  return request({
    url: '/eims/registerCenter',
    method: 'post',
    data: obj
  })
}

//  挂号退费
export function cancelRegisterCenter(obj) {
  return request({
    url: '/eims/registerCenter/cancel',
    method: 'post',
    data: obj
  })
}

//  检查付费
export function checkPayRegisterCenter(obj) {
  return request({
    url: '/eims/registerCenter/checkPay',
    method: 'post',
    data: obj
  })
}
//获取挂号患者信息
export function getRegisterPersonPage(query) {
  return request({
    url: '/eims/registerCenter/getRegisterCenterPage',
    method: 'get',
    params: query
  })
}

//获取挂号患者信息
export function getRegister(id) {
  return request({
    url: '/eims/registerCenter/' + id,
    method: 'get'
  })

}

//获取挂号患者信息
export function getRegisterInfo(id) {
  return request({
    url: '/eims/registerCenter/getRegisterInfo/' + id,
    method: 'get'
  })

}
//分诊分页查询
export function registerCenterTriagePage(query) {
  return request({
    url: '/eims/registerCenter/registerCenterTriagePage',
    method: 'get',
    params: query
  })
}
